package cnm.dao;

import java.util.List;

import cnm.dao.Sorter;

public interface GenericDAO<T>
{
	T findById(int id);

	List<T> findAll(int firstResult, int maxResults, Sorter sorter);

	List<T> findByExample(T exampleEntity, int firstResult, int maxResults, Sorter sorter);

	int save(T entity);

	void update(T entity);

	void delete(T entity);
}
